<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>购物车 - 社交商城</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      margin: 0;
      padding-bottom: 80px;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    .nav-right {
      margin-left: auto;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #ff4d4f;
      color: white;
    }
    
    /* 通用购物车页面样式 */
    .cart-page {
      display: none;
    }
    
    .cart-page.active {
      display: block;
    }
    
    /* 购物车列表容器 */
    .cart-container {
      padding-bottom: 15px;
    }
    
    /* 店铺信息 */
    .shop-info {
      background-color: #fff;
      padding: 12px 15px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #eee;
    }
    
    .shop-checkbox {
      margin-right: 10px;
    }
    
    .shop-name {
      flex: 1;
      font-weight: 500;
    }
    
    .shop-tag {
      color: #ff4d4f;
      font-size: 12px;
      background-color: #fff0f0;
      padding: 2px 5px;
      border-radius: 3px;
      margin-left: 5px;
    }
    
    .shop-actions {
      color: #666;
      font-size: 14px;
    }
    
    /* 商品项基础样式 */
    .cart-item {
      background-color: #fff;
      padding: 15px;
      display: flex;
      border-bottom: 1px solid #eee;
      align-items: flex-start;
    }
    
    .item-checkbox {
      margin-right: 10px;
      margin-top: 5px;
    }
    
    .item-image {
      width: 80px;
      height: 80px;
      border-radius: 4px;
      overflow: hidden;
      margin-right: 10px;
      flex-shrink: 0;
    }
    
    .item-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .item-info {
      flex: 1;
      min-width: 0;
    }
    
    .item-name {
      font-size: 15px;
      line-height: 1.4;
      margin-bottom: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .item-spec {
      font-size: 12px;
      color: #999;
      margin-bottom: 8px;
    }
    
    .item-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .item-price {
      color: #ff4d4f;
      font-weight: 600;
    }
    
    .item-actions {
      display: flex;
      align-items: center;
    }
    
    .item-btn {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 1px solid #ddd;
      background-color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      cursor: pointer;
    }
    
    .item-quantity {
      width: 30px;
      text-align: center;
      font-size: 14px;
      margin: 0 5px;
    }
    
    .item-delete {
      color: #999;
      font-size: 14px;
      margin-left: 10px;
      cursor: pointer;
    }
    
    /* 操作栏 */
    .cart-footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #fff;
      border-top: 1px solid #eee;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      z-index: 90;
    }
    
    .footer-select-all {
      display: flex;
      align-items: center;
      margin-right: 10px;
    }
    
    .select-text {
      margin-left: 5px;
      font-size: 14px;
    }
    
    .footer-summary {
      flex: 1;
      text-align: right;
      margin-right: 10px;
    }
    
    .summary-price {
      font-size: 14px;
      color: #666;
    }
    
    .summary-price span {
      color: #ff4d4f;
      font-size: 18px;
      font-weight: 600;
    }
    
    .summary-desc {
      font-size: 12px;
      color: #999;
    }
    
    .footer-btn {
      padding: 8px 20px;
      background-color: #ff4d4f;
      color: white;
      border: none;
      border-radius: 4px;
      font-weight: 500;
      cursor: pointer;
    }
    
    .footer-btn.disabled {
      background-color: #ffccc7;
      cursor: not-allowed;
    }
    
    /* 空购物车 */
    .empty-cart {
      padding: 50px 15px;
      text-align: center;
    }
    
    .empty-icon {
      font-size: 60px;
      color: #ddd;
      margin-bottom: 20px;
    }
    
    .empty-text {
      color: #999;
      margin-bottom: 20px;
    }
    
    .empty-btn {
      padding: 8px 20px;
      background-color: #ff4d4f;
      color: white;
      border: none;
      border-radius: 4px;
      font-weight: 500;
      cursor: pointer;
    }
    
    /* 样式1 - 标准布局 */
    .standard-cart .cart-item {
      padding: 12px 15px;
    }
    
    .standard-cart .promotion {
      background-color: #fff8e6;
      color: #faad14;
      font-size: 12px;
      padding: 8px 15px;
      display: flex;
      align-items: center;
    }
    
    .standard-cart .promotion i {
      margin-right: 5px;
    }
    
    /* 样式2 - 简约布局 */
    .simple-cart .cart-item {
      padding: 10px 15px;
    }
    
    .simple-cart .shop-info {
      padding: 8px 15px;
    }
    
    .simple-cart .item-name {
      font-size: 14px;
    }
    
    .simple-cart .item-delete {
      display: none;
    }
    
    .simple-cart .footer-select-all {
      display: none;
    }
    
    /* 样式3 - 强调图片布局 */
    .image-cart .item-image {
      width: 100px;
      height: 100px;
    }
    
    .image-cart .item-name {
      white-space: normal;
      margin-bottom: 10px;
    }
    
    .image-cart .item-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-bottom: 8px;
    }
    
    .image-cart .item-tag {
      font-size: 11px;
      background-color: #f5f5f5;
      color: #666;
      padding: 2px 5px;
      border-radius: 3px;
    }
    
    /* 样式4 - 详细布局 */
    .detailed-cart .cart-item {
      padding: 15px;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .detailed-cart .item-status {
      font-size: 12px;
      color: #ff4d4f;
      margin-bottom: 5px;
      display: inline-block;
      background-color: #fff0f0;
      padding: 2px 5px;
      border-radius: 3px;
    }
    
    .detailed-cart .item-service {
      display: flex;
      margin-top: 8px;
      font-size: 12px;
      color: #666;
    }
    
    .detailed-cart .service-item {
      display: flex;
      align-items: center;
      margin-right: 10px;
    }
    
    .detailed-cart .service-item i {
      margin-right: 3px;
      font-size: 12px;
      color: #ff4d4f;
    }
    
    .detailed-cart .cart-extra {
      background-color: #fff;
      padding: 10px 15px;
      margin-bottom: 10px;
      border-radius: 8px;
    }
    
    .detailed-cart .extra-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 14px;
    }
    
    .detailed-cart .extra-title {
      color: #666;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
    
    /* 复选框样式 */
    .custom-checkbox {
      width: 18px;
      height: 18px;
      border-radius: 3px;
      border: 1px solid #ddd;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    
    .custom-checkbox.checked {
      background-color: #ff4d4f;
      border-color: #ff4d4f;
      color: white;
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">购物车</h1>
    <div class="nav-right">
      <a href="#" class="nav-btn" id="editBtn">
        <span>编辑</span>
      </a>
    </div>
  </nav>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="standard">标准布局</div>
      <div class="style-tab" data-style="simple">简约布局</div>
      <div class="style-tab" data-style="image">强调图片</div>
      <div class="style-tab" data-style="detailed">详细布局</div>
    </div>
  </div>
  
  <!-- 样式1 - 标准布局 -->
  <div class="cart-page active standard-cart" id="standard">
    <div class="cart-container">
      <!-- 店铺1 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">
          潮流服饰旗舰店
          <span class="shop-tag">官方</span>
        </div>
        <div class="shop-actions" onclick="showToast('进店逛逛')">
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
      
      <!-- 商品1 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">夏季纯棉短袖T恤 男女同款宽松休闲上衣</div>
          <div class="item-spec">颜色：白色 | 尺码：M</div>
          <div class="item-footer">
            <div class="item-price">¥59</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 商品2 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">潮流牛仔裤 修身直筒长裤 百搭休闲裤</div>
          <div class="item-spec">颜色：蓝色 | 尺码：30</div>
          <div class="item-footer">
            <div class="item-price">¥129</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="promotion">
        <i class="fa fa-tag"></i>
        <span>店铺满200减30，可与平台券叠加使用</span>
      </div>
      
      <!-- 店铺2 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">
          数码配件专营店
        </div>
        <div class="shop-actions" onclick="showToast('进店逛逛')">
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
      
      <!-- 商品3 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
          <div class="item-spec">颜色：黑色</div>
          <div class="item-footer">
            <div class="item-price">¥199</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="cart-footer">
      <div class="footer-select-all">
        <div class="custom-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="select-text">全选</div>
      </div>
      <div class="footer-summary">
        <div class="summary-price">合计：<span>¥387</span></div>
        <div class="summary-desc">已选择3件商品</div>
      </div>
      <button class="footer-btn" onclick="showToast('去结算')">结算</button>
    </div>
  </div>
  
  <!-- 样式2 - 简约布局 -->
  <div class="cart-page simple-cart" id="simple">
    <div class="cart-container">
      <!-- 店铺1 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">潮流服饰旗舰店</div>
      </div>
      
      <!-- 商品1 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">夏季纯棉短袖T恤 男女同款</div>
          <div class="item-spec">白色 | M</div>
          <div class="item-footer">
            <div class="item-price">¥59</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 商品2 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">潮流牛仔裤 修身直筒长裤</div>
          <div class="item-spec">蓝色 | 30</div>
          <div class="item-footer">
            <div class="item-price">¥129</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 店铺2 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">数码配件专营店</div>
      </div>
      
      <!-- 商品3 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">无线蓝牙耳机 运动跑步</div>
          <div class="item-spec">黑色</div>
          <div class="item-footer">
            <div class="item-price">¥199</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="cart-footer">
      <div class="footer-summary">
        <div class="summary-price">合计：<span>¥387</span></div>
      </div>
      <button class="footer-btn" onclick="showToast('去结算')">结算</button>
    </div>
  </div>
  
  <!-- 样式3 - 强调图片布局 -->
  <div class="cart-page image-cart" id="image">
    <div class="cart-container">
      <!-- 店铺1 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">潮流服饰旗舰店</div>
        <div class="shop-actions" onclick="showToast('进店逛逛')">
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
      
      <!-- 商品1 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">夏季纯棉短袖T恤 男女同款宽松休闲上衣 多色可选</div>
          <div class="item-tags">
            <span class="item-tag">热销</span>
            <span class="item-tag">纯棉</span>
          </div>
          <div class="item-spec">颜色：白色 | 尺码：M</div>
          <div class="item-footer">
            <div class="item-price">¥59</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 商品2 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">潮流牛仔裤 修身直筒长裤 百搭休闲裤 四季可穿</div>
          <div class="item-tags">
            <span class="item-tag">新品</span>
          </div>
          <div class="item-spec">颜色：蓝色 | 尺码：30</div>
          <div class="item-footer">
            <div class="item-price">¥129</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 店铺2 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">数码配件专营店</div>
        <div class="shop-actions" onclick="showToast('进店逛逛')">
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
      
      <!-- 商品3 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">无线蓝牙耳机 运动跑步降噪耳机 长续航 高清通话</div>
          <div class="item-tags">
            <span class="item-tag">促销</span>
          </div>
          <div class="item-spec">颜色：黑色</div>
          <div class="item-footer">
            <div class="item-price">¥199</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="cart-footer">
      <div class="footer-select-all">
        <div class="custom-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="select-text">全选</div>
      </div>
      <div class="footer-summary">
        <div class="summary-price">合计：<span>¥387</span></div>
        <div class="summary-desc">3件商品</div>
      </div>
      <button class="footer-btn" onclick="showToast('去结算')">结算</button>
    </div>
  </div>
  
  <!-- 样式4 - 详细布局 -->
  <div class="cart-page detailed-cart" id="detailed">
    <div class="cart-container">
      <!-- 店铺1 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">潮流服饰旗舰店</div>
        <div class="shop-actions" onclick="showToast('进店逛逛')">
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
      
      <!-- 商品1 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-status">限时特惠</div>
          <div class="item-name">夏季纯棉短袖T恤 男女同款宽松休闲上衣</div>
          <div class="item-spec">颜色：白色 | 尺码：M</div>
          <div class="item-footer">
            <div class="item-price">¥59 <span style="text-decoration:line-through;color:#999;font-size:12px;font-weight:normal;">¥99</span></div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
          <div class="item-service">
            <div class="service-item"><i class="fa fa-check-circle"></i> 7天无理由</div>
            <div class="service-item"><i class="fa fa-check-circle"></i> 极速退款</div>
          </div>
        </div>
      </div>
      
      <!-- 商品2 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-name">潮流牛仔裤 修身直筒长裤 百搭休闲裤</div>
          <div class="item-spec">颜色：蓝色 | 尺码：30</div>
          <div class="item-footer">
            <div class="item-price">¥129</div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
          <div class="item-service">
            <div class="service-item"><i class="fa fa-check-circle"></i> 7天无理由</div>
          </div>
        </div>
      </div>
      
      <!-- 店铺优惠信息 -->
      <div class="cart-extra">
        <div class="extra-item">
          <div class="extra-title">店铺优惠</div>
          <div>满200减30 <i class="fa fa-angle-right" style="color:#999;"></i></div>
        </div>
        <div class="extra-item">
          <div class="extra-title">可使用优惠券</div>
          <div>3张可用 <i class="fa fa-angle-right" style="color:#999;"></i></div>
        </div>
      </div>
      
      <!-- 店铺2 -->
      <div class="shop-info">
        <div class="custom-checkbox shop-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="shop-name">数码配件专营店</div>
        <div class="shop-actions" onclick="showToast('进店逛逛')">
          <i class="fa fa-angle-right"></i>
        </div>
      </div>
      
      <!-- 商品3 -->
      <div class="cart-item">
        <div class="custom-checkbox item-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="item-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="item-info">
          <div class="item-status">热销</div>
          <div class="item-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
          <div class="item-spec">颜色：黑色</div>
          <div class="item-footer">
            <div class="item-price">¥199 <span style="text-decoration:line-through;color:#999;font-size:12px;font-weight:normal;">¥299</span></div>
            <div class="item-actions">
              <div class="item-btn" onclick="showToast('减少数量')">-</div>
              <div class="item-quantity">1</div>
              <div class="item-btn" onclick="showToast('增加数量')">+</div>
              <div class="item-delete" onclick="showToast('删除成功')">
                <i class="fa fa-trash-o"></i>
              </div>
            </div>
          </div>
          <div class="item-service">
            <div class="service-item"><i class="fa fa-check-circle"></i> 两年质保</div>
            <div class="service-item"><i class="fa fa-check-circle"></i> 7天无理由</div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="cart-footer">
      <div class="footer-select-all">
        <div class="custom-checkbox" onclick="this.classList.toggle('checked')">
          <i class="fa fa-check" style="font-size:12px;display:none;"></i>
        </div>
        <div class="select-text">全选</div>
      </div>
      <div class="footer-summary">
        <div class="summary-price">合计：<span>¥387</span> <span style="font-size:12px;color:#666;font-weight:normal;">(含运费¥10)</span></div>
        <div class="summary-desc">已选择3件商品，可减¥30</div>
      </div>
      <button class="footer-btn" onclick="showToast('去结算')">结算</button>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const cartPages = document.querySelectorAll('.cart-page');
    const backBtn = document.getElementById('backBtn');
    const editBtn = document.getElementById('editBtn');
    const toast = document.getElementById('toast');
    const checkboxes = document.querySelectorAll('.custom-checkbox');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        cartPages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}`);
      });
    });
    
    // 复选框交互
    checkboxes.forEach(checkbox => {
      checkbox.addEventListener('click', function() {
        const checkIcon = this.querySelector('i');
        if (this.classList.contains('checked')) {
          checkIcon.style.display = 'block';
        } else {
          checkIcon.style.display = 'none';
        }
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回商品列表');
    });
    
    // 编辑按钮
    editBtn.addEventListener('click', function() {
      if (this.textContent === '编辑') {
        this.textContent = '完成';
        showToast('进入编辑模式');
      } else {
        this.textContent = '编辑';
        showToast('退出编辑模式');
      }
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
